<!--{*Part of the CEFIRO project by dyrtech.com.ve. Copyleft GPLv3 2007. Please see the disclaimer at the root of the project: http://dyrtech.com.ve/cefiro/license.txt*}-->
<link type="text/css" rel="stylesheet" href="{$formattedtablecss}">
<script type="text/javascript" src="{$formattedtablejs}"></script>

{if $matrixContent != NULL}
<div {if $divsize != ''}width={$divsize}{/if}>
		<table width="90%" cellpadding="0" cellspacing="0" border="1">
		{if $arrayTitle != NULL}
			<tr class="tr-tit-con">
			{foreach name=arrayTitle item=title from=$arrayTitle}
				<td class="td-formatted">{$title}</td>
			{/foreach}
			</tr>
		{else}
			<tr class="tr-tit-con">
			{foreach name=arrayKeys item=title from=$arrayKeys}
				<td class="td-formatted">{$title}</td>
			{/foreach}
			</tr>
		{/if}

		{assign var="i" value=0}
		{foreach name=matrixRow item=row from=$matrixContent}

			{if $smarty.foreach.matrixRow.iteration % 2 == 0}
				<tr id="tr-{$i}" class="tr-par" {if $link!=''} onclick="window.open('{$link}?{$nameid}={$row.$nameid}{if $linkOpt != ''}&opt={$linkOpt}{/if}{if $extraOpt != ''}&{$extraOpt}={$row.$extraOpt}{/if}','{$target}');" onmouseover="resaltado('tr-{$i}');" onmouseout="noresaltado('tr-{$i}','par');"  {/if}>
			{else}
				<tr id="tr-{$i}" class="tr-impar" {if $link!=''} onclick="window.open('{$link}?{$nameid}={$row.$nameid}{if $linkOpt != ''}&opt={$linkOpt}{/if}{if $extraOpt != ''}&{$extraOpt}={$row.$extraOpt}{/if}','{$target}');" onmouseover="resaltado('tr-{$i}');" onmouseout="noresaltado('tr-{$i}','impar');"  {/if}>
			{/if}

			{assign var="i" value=$i+1}
			{section name=i loop=$arrayKeys}
				{assign var="j" value=$arrayKeys[i]}
				<td {if $rowOpts[i] != ''}{$rowOpts[i]}{else}style="padding-left:7px;"{/if} class="td-formatted">{if $row.$j != ''}{$row.$j}{else}&nbsp;{/if}</td>
			{/section}
			</tr>
		{/foreach}
		</table>
	</div>
	{/if}